<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>页面布局3(flex)</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        body {
            font-size: 14px;
        }

        #container {
            margin: 0 auto;
            width: 1000px;
            height: 650px;
            display: flex;
            flex-direction: column;
        }

        #header {
            flex: 2;
            background-color: bisque;
            margin-bottom: 5px;
        }

        #footer {
            flex: 1;
            background-color: bisque;
        }

        #main {
            flex: 10;
            margin-bottom: 5px;
            display: flex;
        }

        #aside {
            flex: 3;
            background-color: gray;
        }

        #content {
            flex: 7;
            background-color: aquamarine;
            margin-left: 5px;
        }
    </style>
</head>
<body>
    <div id="container">
        <div id="header"></div>
        <div id="main">
            <div id="aside"></div>
            <div id="content"></div>
        </div>
        <div id="footer"></div>
    </div>
</body>
</html>